package com.fbs.wowo.manage.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class UserLogin {
    /************************************
     *
     * 数据库存储的数据
     *
     ************************************/
    // uuid 主键
    private String id;
    // 用户id
    private String userId;
    // 手机号
    private String tel;
    // 手机验证码
    private String verifyCode;
    // 创建日期
    private Date createTime;
    // 是否新用户
    private Byte isReg;
    // 登录类型：手机验证码，账号密码，微信，微博，qq
    private Byte loginType;
    // 状态 是否有效
    private Byte status;
    /************************************
     *
     * 临时存储的数据
     *
     ************************************/
    private String name;
    private String invitationCode;
    private String invitationCodeSu;
    private String photo;
    private Byte age;
    private Byte sex;
    private String rcToken;
    private String token;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel == null ? null : tel.trim();
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode == null ? null : verifyCode.trim();
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Byte getIsReg() {
        return isReg;
    }

    public void setIsReg(Byte isReg) {
        this.isReg = isReg;
    }

    public Byte getLoginType() {
        return loginType;
    }

    public void setLoginType(Byte loginType) {
        this.loginType = loginType;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }

    public String getInvitationCodeSu() {
        return invitationCodeSu;
    }

    public void setInvitationCodeSu(String invitationCodeSu) {
        this.invitationCodeSu = invitationCodeSu;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public Byte getAge() {
        return age;
    }

    public void setAge(Byte age) {
        this.age = age;
    }

    public Byte getSex() {
        return sex;
    }

    public void setSex(Byte sex) {
        this.sex = sex;
    }

    public String getRcToken() {
        return rcToken;
    }

    public void setRcToken(String rcToken) {
        this.rcToken = rcToken;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}